package com.work;

import java.util.List;

public class Service implements Dao{

    private List<Dog> list;
//    Dao dao;

    public void setList(List<Dog> list) {
        this.list = list;
    }


    @Override
    public void delete(Integer dno) {

        System.out.println("删除。。。。");

    }

    @Override
    public List<Dog> select() {
        System.out.println("查询。。。。。");
//                System.out.println(10/0);
        System.out.println(list);

        return list;
    }

    @Override
    public void update(Dog d) {
        System.out.println("修改。。。。。");
    }

    @Override
    public void insert(Dog d) {
        System.out.println("新增。。。。。");
    }


}
